<?php

namespace app\logic\single\group;

use app\api\model\group\GroupGoodsApiModel;
use app\api\model\group\GroupOrderApiModel;
use app\api\model\user\UserWriterWaterApiModel;

class GroupGoodsSingle
{

    private static $inc;
    /**
     * @var GroupOrderApiModel
     */
    private $orderModel;
    /**
     * @var GroupGoodsApiModel
     */
    private $goodsModel;
    /**
     * @var UserWriterWaterApiModel
     */
    private $userWriterWaterModel;

    private function __clone(){

    }
    // 禁止被实例化
    private function __construct()
    {
        $this->orderModel = new GroupOrderApiModel();
        $this->goodsModel = new GroupGoodsApiModel();
        $this->userWriterWaterModel = new UserWriterWaterApiModel();
    }
    public static function getInstance(){
        if(is_null(self::$inc)){
            self::$inc = new self();
        }
        return self::$inc;
    }
}